<template>
  <div class="show-area-item">
    <div class="img ">
    </div>
    <div class="text">
      <div class="one" v-for=" in textNum"></div>
    </div>
  </div>
</template>

<script setup lang="ts">


withDefaults(defineProps<{
  textNum?: number
}>(), {
  textNum: 2
})
</script>
<style lang="scss" scoped>
%skeleton-bg {
  background: linear-gradient(100deg,
      var(--background-gray-color) 40%,
      var(--ainmation-bg-color) 50%,
      var(--background-gray-color) 60%);
  background-size: 200% 100%;
  background-position-x: 180%;
  animation: 1s loading ease-in-out infinite;

}


.show-area-item {
  display: flex;
  flex-direction: column;
  width: 7.5rem;
  height: 11rem;
  border-radius: 0.4rem;
  overflow: hidden;
  border: 1px solid var(--background-gray-color);


  .text {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 0.2rem;

    .one {
      width: 100%;
      height: 1rem;
      margin: 0.1rem 0;
      border-radius: 0.1rem;
      @extend %skeleton-bg;
      animation-delay: .06s;

    }

    .one:nth-child(2) {
      width: 70%;

    }
  }

  .img {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 0.4rem;
    @extend %skeleton-bg;
    animation-delay: .03s;


  }

  @keyframes loading {
    to {
      background-position-x: -20%;
    }
  }

}
</style>